package com.sc.nft.dao;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sc.nft.entity.UserEcologyHatchUpperLimitDetails;
import com.sc.nft.entity.vo.ecology.UserEcologyHatchUpperLimitDetailsVO;
import com.sc.nft.mapper.UserEcologyHatchUpperLimitDetailsMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Repository;

/**
 * @author 朱梦晨
 * @Description: 生态熔炼上限记录明细表 数据dao
 * @date 2024-08-06
 */
@Slf4j
@Repository
public class UserEcologyHatchUpperLimitDetailsDao extends ServiceImpl<UserEcologyHatchUpperLimitDetailsMapper, UserEcologyHatchUpperLimitDetails> {



    public Page<UserEcologyHatchUpperLimitDetailsVO> getUserEcologyHatchUpperLimitDetails(Long userId, Long collectionId, Integer pageNo, Integer pageSize) {
        return baseMapper.getUserEcologyHatchUpperLimitDetails(new Page<>(pageNo, pageSize), userId,collectionId);
    }
}
